package com.cssl.openFeign;

import com.cssl.domain.Dtsorder;
import com.cssl.domain.Page;
import com.cssl.domain.dto.*;
import com.cssl.util.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(value = "DtsShopProvider9090",path = "/Order",contextId = "92")
public interface DtsorderFeignClient {

    /**
     *订单详情
     */
    @PostMapping("/list")
    Result findPageorder(@RequestBody DtsorderDto dtsorderDto);

    /**
     * 删除订单
     */
    @DeleteMapping("/delete")
     Result deleteOrder(@RequestParam("ids") String ids);



    @PostMapping("/addDirectUserOrder")
     Result addDirectUserOrder(@RequestBody DirectUserOrder userOrder);

    @PostMapping("/addCarOrder")
     Result addCarOrder(@RequestBody Map<String, List<Integer>> map);


//    @PostMapping("/initiateGroupPurchase")
//     Result initiateGroupPurchase(@RequestBody GroupPurchaseDto groupPurchaseDto);

    @PostMapping("/getOrderInfo")
    Result getOrderDetails(@RequestBody OrderInfoDto orderInfoDto);


    @PostMapping("/commonAddOrder")
     Result commonAddOrder(@RequestBody CommonOrderDto dto);


    @PostMapping("/QRCode")
     Result QRCode(@RequestBody Dtsorder dtsorder);
    @PostMapping("/updateorder")
    Result updatebrand(@RequestBody Map updateorder);
}
